Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 8 - Video Digitizer Components / Video Digitizer Components Reference
Video Digitizer Component Functions / Controlling Color


VDGetInputColorSpaceMode

The VDGetInputColorSpaceMode function allows applications to determine whether a digitizer is operating in color or grayscale mode.

pascal VideoDigitizerError VDGetInputColorSpaceMode
                               (VideoDigitizerComponent ci,
                                 short *colorSpaceMode);
ci
Specifies the video digitizer component for the request. Applications obtain this reference from the Component Manager's OpenComponent function.
colorSpaceMode
Contains a pointer to a value that indicates whether the digitizer is operating in color or grayscale mode. The following values are valid:
0
Grayscale digitization
1
Color digitization
DESCRIPTION
Applications can determine whether a digitizer component supports grayscale or color digitization by examining the digitizer component's input capability flags. Specifically, if the digiInDoesColor flag is set to 1, the digitizer component supports color digitization. Similarly, if the digiInDoesBW flag is set to 1, the digitizer component supports grayscale digitization. Applications can use the VDGetCurrentFlags function (described on page 8-25) to obtain the input capability flags of a digitizer component.

RESULT CODES
noErr0No error
digiUnimpErr-2201Function not supported
qtParamErr-2202Invalid parameter value
SEE ALSO
Applications can choose between color and grayscale digitization by calling the VDSetInputColorSpaceMode function, which is described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help